package com.panshi.modules.system.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * <p>
 * 后端管理用户 
 * </p>
 *
 * @author 小伍
 * @since 2020-08-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BeiSysUser对象", description="后端管理用户 ")
public class BeiSysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "后端管理id")
    @TableId(value = "uaid", type = IdType.AUTO)
    private Integer uaid;

    @ApiModelProperty(value = "用户昵称")
    private String nickname;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "性别")
    private String gender;

    @ApiModelProperty(value = "电话号码")
    @NotBlank(message = "请输入电话号码")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    @NotBlank(message = "请输入邮箱")
    private String email;

    @ApiModelProperty(value = "简介")
    private String brief;

    @ApiModelProperty(value = "头像")
    private String head;

    @ApiModelProperty(value = "最后登录时间")
    private Date lastLoginTime;

    @ApiModelProperty(value = "姓名")
    private String realname;

    @ApiModelProperty(value = "角色名称")
    private List<BeiSysRole> beiSysRole;

    @ApiModelProperty(value = "用户角色关系表")
    private BeiSysUserRole beiSysUserRole;

}
